﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Site.Master" AutoEventWireup="true" CodeBehind="DeleteDepartment.aspx.cs" Inherits="cs499.Admin.DeleteDepartment" %>
<%@ MasterType VirtualPath="~/Site.Master" %>

<asp:Content ID="Content1" ContentPlaceHolderID="HeadContent" runat="server">
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="NavOptions" runat="server">
    <asp:Button ID="CancelButton" runat="server" Text="Cancel" Width="133px" CausesValidation="False" PostBackUrl="~/Admin/ListUsers.aspx" />
</asp:Content>
<asp:Content ID="Content3" ContentPlaceHolderID="FeaturedContent" runat="server">
    <section class="featured">
        <div class="content-wrapper">
            <h3><asp:Label ID="DeleteDepartmentLabel" runat="server" Text="Select Department to delete"></asp:Label></h3>
        </div>
    </section>
</asp:Content>
<asp:Content ID="Content4" ContentPlaceHolderID="MainContent" runat="server">
    <asp:GridView ID="DepartmentList" runat="server" AutoGenerateColumns="False" DataKeyNames="Id" DataSourceID="EntityDataSource2" Width="206px" OnRowDeleted="DepartmentList_RowDeleted" OnRowDeleting="DepartmentList_RowDeleting">
        <Columns>
            <asp:CommandField ShowDeleteButton="True" />
            <asp:BoundField DataField="Name" HeaderText="Name" SortExpression="Name" />
            <asp:BoundField DataField="Code" HeaderText="Code" SortExpression="Code" />
        </Columns>
    </asp:GridView>
    <asp:EntityDataSource ID="EntityDataSource2" runat="server" ConnectionString="name=Model1Container" DefaultContainerName="Model1Container" EnableDelete="True" EnableFlattening="False" EntitySetName="Departments" EntityTypeFilter="Department">
    </asp:EntityDataSource>
</asp:Content>
